let viewDetailList = [];
function viewDetails(state=viewDetailList,action){
    switch(action.type){
        case 'GETVIEWDETAILS':
            return [...action.data];
        default:
            return state;
        
    }
};

export default viewDetails;